package com.gongzonqiang.myenum;

public enum UserEnum {
	FREEZE(0,"拉黑"),
	NORMAL_USER(1,"正常"),
	ADMIN(2,"管理员"),
	
	NOLOGIN(1000,"用户未登录"),
	PARAMSFAIL(1002,"参数错误"),
	PHONEBINDING(1004,"手机号已被绑定"),
	NOTYOUR(1005,"非法操作"),
	NOTADMIN(1006,"不是管理员"),
	USERNAME_PWD_erro(1007,"用户名或密码错误"),
	;
	
	/*
	 * code 状态值
	 */
	private Integer code;
	/*
	 * 状态说明
	 */
	private String message;

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	private UserEnum(Integer code, String message) {
		this.code = code;
		this.message = message;
	}

}
